﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BlueCrestStudio.DataVirtualization.Client.Data;
using BlueCrestStudio.DataVirtualization.Client.StockDataService;
using BlueCrestStudio.DataVirtualization.Client.ViewModels;
using Microsoft.Practices.Unity;

namespace BlueCrestStudio.DataVirtualization.Client
{
    public static class ContainerInitialiser
    {
        public static void Initialise(IUnityContainer container)
        {
            container.RegisterType<IItemsProvider<Stock>, StockDataProvider>(new ContainerControlledLifetimeManager());

            container.RegisterType<StockXamGridViewModel>();
        }
    }
}
